package me.jiatao.mvpdagger2.ioc;

import dagger.Module;
import dagger.Provides;
import me.jiatao.mvpdagger2.mvc.userinfo.IUserInfoContract;
import me.jiatao.mvpdagger2.mvc.userinfo.UserInfoModel;

/**
 * Created by JiaTao on 2018/8/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */

@Module
public class UserInfoModules {

    private IUserInfoContract.IUserInfoView view;

    public UserInfoModules(IUserInfoContract.IUserInfoView view) {
        this.view = view;
    }

    @Provides
    public IUserInfoContract.IUserInfoView userInfoView() {
        return view;
    }

    @Provides
    public UserInfoModel userInfoModel() {
        return new UserInfoModel();
    }

}
